fix(openclaw-plugin): default recall to assemble and bound afterTurn#1424
fix(openclaw-plugin): default recall to assemble and bound afterTurn#14240xble wants to merge 9 commits intovolcengine:mainfrom
Conversation
Move the OpenClaw plugin to an assemble-first recall path when the context-engine slot is active, keep before_prompt_build as compatibility-only behavior, and teach the setup helper to resolve the active OpenClaw config file so json5-based installs upgrade cleanly.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨No code suggestions found for the PR. |
|
“这些 logger.info 现在会在非 debug 模式下输出 session context / summary / message preview,默认日志会带上用户内容。建议收敛到 logFindRequests/debug 开关后,或只保留计数与 trace_id 等非内容信息。” 代码有confilict |
…le-recall # Conflicts: # examples/openclaw-plugin/context-engine.ts
|
Kept the ingest-reply-assist fallback even when recall init fails, pushed the conflict resolution, and tightened the noisy session-content logs so full summaries/message previews stay behind debug logging. |
|
已处理:我把 upstream/main 合进来解决了 conflict;默认 |
|
Did one simplify pass on the current branch head. This only removes a duplicated |
|
Restored the upstream-style Chinese inline comments that were dropped during the refactor and kept the behavior-changed sections commented in Chinese as well, so those spots stay aligned with upstream comment style without reintroducing stale wording. |
Description
Default the OpenClaw plugin to an assemble-first recall path when OpenViking
owns the
contextEngineslot, and fail open if the plugin's hot-path capturework gets slow.
This avoids running hook-based recall and context-engine recall on the same
reply path, updates the setup helper to resolve the active OpenClaw config
file so existing installs upgrade cleanly, and bounds
afterTurnauto-captureso slow OV writes do not keep an OpenClaw run open after the model already
replied. It also keeps default plugin logs content-safe: session summaries,
message previews, and captured turn text are only emitted when debug routing
logs are enabled.
Related Issue
Related to #1283
Type of Change
Changes Made
assemble()by default and added arecallPathconfig so
before_prompt_buildonly runs in explicit compatibility mode.recallPath=assemble, disable prompt injection in context-engine mode, andresolve the active OpenClaw config file instead of assuming
openclaw.json.afterTurnauto-capture with a fail-open timeout so slow OpenVikingsession writes cannot block OpenClaw run completion after the assistant has
already produced a reply.
logFindRequestsand keptdefault info logs to non-content metadata such as counts, status, task, and
trace IDs.
initialization fails, so a recall outage does not suppress the non-client
prompt assist path.
setup-helper config handling, content-safe default logging, recall init
fallback, and
afterTurntimeout fallback behavior.Testing
Commands run:
npm exec --package typescript -- tsc --noEmitnpm test -- tests/ut/local-startup-failure.test.ts tests/ut/plugin-bypass-session-patterns.test.ts tests/ut/context-engine-assemble.test.tsnpm testgit diff --checkcr review --type committed --base upstream/main --agentChecklist
Screenshots (if applicable)
N/A
Additional Notes
OpenViking plugin at v0.3.5.
gateway-timeout fallback behavior.
maininto the PR branch to resolve the reportedconflict.